{volist name="$navlist" id="vo" key="k"}
{
index: "{$k}",
title: "{$vo.name}",
href: "{if $vo.link}{$vo.link}{else}{:url('/index/'.$vo.page.'/index',['lanmu'=>$vo.id, 'id'=>$vo.id])}{/if}",
{if $vo.page == 'products'}
subMenus: [
    {
        index: "1",
        title: "{:__('By Category')}",
        href: "#",
        subMenus: [
            {volist name="$vo.categories" id="v3" key="k3"}
            {
                index: "{$k}-categories-{$k3}",
                title: "{$v3.name}",
                href: "{:url($vo.page.'/index',['lanmu'=>$vo.id,'category_id'=>$v3.id])}",
            },
            {/volist}
        ]
    },
    {
    index: "1",
    title: "{:__('By Series')}",
    href: "#",
    subMenus: [
    {volist name="$vo.series" id="v3" key="k3"}
    {
    index: "{$k}-series-{$k3}",
    title: "{$v3.name}",
    href: "{:url($vo.page.'/index',['lanmu'=>$vo.id,'series_id'=>$v3.id])}",
    },
    {/volist}
    ]
    },
    {
    index: "1",
    title: "{:__('By Series')}",
    href: "#",
    subMenus: [
    {volist name="$vo.textures" id="v3" key="k3"}
    {
    index: "{$k}-textures-{$k3}",
    title: "{$v3.name}",
    href: "{:url($vo.page.'/index',['lanmu'=>$vo.id,'texture_id'=>$v3.id])}",
    },
    {/volist}
    {
    index: "{$k}-textures-{all-products}",
    title: "{:__('All Products')}",
    href: "{:url($vo.page.'/index',['lanmu'=>$productChannel.id,'id'=>$productChannel.id])}",
    },
    ]
    },
]
{else}
{if $vo.erlist}
subMenus: [

    {volist name="$vo.erlist" id="v" key="k2"}
    {
    index: "{$k}-{$k2}",
    title: "{$v.name}",
    href: "#",
    subMenus: [
        {volist name="$v.erlist" id="v3" key="k3"}
        {
        index: "{$k}-{$k2}-{$k3}",
        title: "{$v3.name}",
        href: "{:url($vo.page.'/index',['lanmu'=>$vo.id,'id'=>$v3.id])}",
        },
        {/volist}
    ]
    },
    {/volist}
]
{/if}
{/if}
},
{/volist}